/**
 * 
 */
package com.wodsy.phoenix.dataservice.cms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.container.Main;
import com.wodsy.phoenix.datadao.base.IBaseDao;
import com.wodsy.phoenix.datadao.cms.dao.CmsHomePageBannerDao;
import com.wodsy.phoenix.datadao.cms.dao.CmsHomePageCustomizePicDao;
import com.wodsy.phoenix.datadao.cms.dao.CmsHomePageHotGoodsDao;
import com.wodsy.phoenix.datadao.cms.dao.CmsHomePageNewGoodsDao;
import com.wodsy.phoenix.datadao.cms.dao.CmsHomePageShopRecDao;
import com.wodsy.phoenix.dataservice.base.AbstractBaseService;
import com.wodsy.phoenix.dataservice.cms.service.CmsHomePageStatusService;

/**
 * @author bryan
 *
 */
@Service(interfaceClass = CmsHomePageStatusService.class, interfaceName = "com.wodsy.phoenix.dataservice.cms.service.CmsHomePageStatusService")
public class CmsHomePageStatusServiceImpl extends AbstractBaseService<Integer, Integer>
	implements	CmsHomePageStatusService {
	
	@Autowired
	CmsHomePageNewGoodsDao cmsNewGoodsDao;
	@Autowired
	CmsHomePageHotGoodsDao cmsHotGoodsDao;
	@Autowired
	CmsHomePageBannerDao cmsBannerDao;
	@Autowired
	CmsHomePageCustomizePicDao cmsCustomizePicDao;
	@Autowired
	CmsHomePageShopRecDao cmsShopRecDao;
	
	
	@Override
	protected IBaseDao<Integer, Integer> getIBaseDao() {
		return null;
	}

	@Transactional(readOnly=false)
	@Override
	public Integer updateNewGoodsRecommendedStatus(int goods_rId, int status) {
		return cmsNewGoodsDao.updateGoodsRecommendedStatus(goods_rId, status);
	}
	@Transactional(readOnly=false)
	@Override
	public Integer updateHotGoodsRecommendedStatus(int goods_rId, int status) {
		return cmsHotGoodsDao.updateGoodsRecommendedStatus(goods_rId, status);
	}
	@Transactional(readOnly=false)
	@Override
	public Integer updateBannerRecommendedStatus(int banner_rId, int status) {
		return cmsBannerDao.updateBannerPicStatus(banner_rId, status);
	}

	@Transactional(readOnly=false)
	@Override
	public Integer updateCustomizeRecommendedStatus(int customize_rId,
			int status) {
		return cmsCustomizePicDao.updateCustomizePicStatus(customize_rId, status);
	}

	@Transactional(readOnly=false)
	@Override
	public Integer updateShopRecommendedStatus(int shop_rId, int status) {
		return cmsShopRecDao.updateGoodsRecommendedStatus(shop_rId, status);
	}
	

	public static void main(String[] args) {
		Main.main(args);
	}


}
